<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="robots" content="index, follow" />
		<meta name="description"
			content="DADF Examples - Home Page" />
		<meta name="keywords" content="DADF Examples, DADF, Database, viewer" />
		<title>
			DADF SERVER 1.2	uses REST services exclusively
		</title>
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<script src="/_js/examples.js"></script>
	</head>
	<body>
		<h1>DADF SERVER 1.2 REST Examples</h1>
		<p>To view DADF requests in the database use the <a href="/database/">Database to XML viewer here</a></p>
		<p>To view DADF requests to a peer server use the <a href="/">DADF remote server REST POST examples here</a></p>
		<?php $dadf_version = Zend_Registry::get('application.version'); ?>
		<div>
			<h3>REST POST/PUT DADF REQUEST</h3>
			<form id="buyside-dadf-request" action="/buyside/dadfrequest/" method="POST" target="_blank">
				<div>
					<textarea name="xml" cols="140" rows="25"><?php echo file_get_contents('../application/samples/Dadf.request-' . $dadf_version . '.xml'); ?></textarea>
				</div>
				<div>
					<input type="submit" value="POST DADF-REQUEST" />
				</div>
			</form>
		</div>
	
		<div style="margin-top: 50px;">
			<h3>REST POST/PUT DADF OFFER RESPONSE</h3>
			<p>dadf-offer responses are not inputted through the REST services. They the are HTTP responses to dadf-request's.</p>
		</div>
		
		<div style="margin-top: 50px;">
			<h3>REST POST/PUT DADF ACCEPT RESPONSE</h3>
			<form id="buyside-dadf-accept" action="/buyside/dadfaccept/" method="POST" target="_blank">
				<div>
					<textarea name="xml" cols="140" rows="15"><?php echo file_get_contents('../application/samples/Dadf.accept-' . $dadf_version . '.xml'); ?></textarea>
				</div>
				<div>
					<input type="submit" value="POST DADF-ACCEPT" />
				</div>
			</form>
		</div>
		
		<div style="margin-top: 50px;">
			<h3>REST POST/PUT DADF ACCEPTED RESPONSE</h3>
			<p>dadf-accepted responses are not inputted through the REST services. They the are HTTP responses to dadf-accept's.</p>
		</div>
	
	</body>
</html>




